package main

import (
	"AlioServerProject/routes"
	"AlioServerProject/utils"
	"net/http"
	"time"
)

func main() {
	defer utils.RedisClient.Close()
	server := &http.Server{
		Addr:           ":80",
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   10 * time.Second,
		MaxHeaderBytes: 1 << 20,
		Handler:        routes.Router(),
	}
	server.ListenAndServe()
}
